#pragma once

#include "../utils/misc.h"
#include "../container/wsdeque.h"

namespace mdtx::online::impl
{
    template <typename T>
    class ptable
    {
    public:
        container::wsdeque<T, T, 2> table;

        void insert_impl(T p, T v, T t)
        {
            table.insert(p, v, t);
        }

        void remove_impl(T p, T v, T t)
        {
            table.erase(p, v, t);
        }

        void reset_impl()
        {
            table.clear();
        }
    };
}
